#ifndef DEVICES_H
#define DEVICES_H

#include <QString>
#include <QXmlStreamReader>
#include <QXmlStreamAttributes>
#include <QFile>
#include <QTreeWidgetItem>
#include <QTreeWidget>
#include <QVector>
#include <target.h>
#include <QDebug>
#include <cglobals.h>


//#pragma execution_character_set("utf-8")


class DeviceProcess
{
public:
    DeviceProcess();
    ~DeviceProcess();
    void parseTarget();
    QVector<Target*>* getAllDevices();
    void setSelectedDevice(Target device);
    Target* getSelectedDevice();
    void readConfig(QString config);
    void parseSystem(Target* t, int index);

private:
    QXmlStreamReader reader;
    QVector<Target*>* pDevice_Vector = NULL;
    Target* pSelectedDevice = NULL;
};

#endif // DEVICES_H
